Optimal. Leaf size=127 \[ -\frac{(5 c-d) \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{2} \sqrt{a \sec (e+f x)+a}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{2 c \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{a^{3/2} f}-\frac{(c-d) \tan (e+f x)}{2 f (a \sec (e+f x)+a)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.183273, antiderivative size = 127, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3922, 3920, 3774, 203, 3795} \[ -\frac{(5 c-d) \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{2} \sqrt{a \sec (e+f x)+a}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{2 c \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{a^{3/2} f}-\frac{(c-d) \tan (e+f x)}{2 f (a \sec (e+f x)+a)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3922
Rule 3920
Rule 3774
Rule 203
Rule 3795
Rubi steps
\begin{align*} \int \frac{c+d \sec (e+f x)}{(a+a \sec (e+f x))^{3/2}} \, dx &=-\frac{(c-d) \tan (e+f x)}{2 f (a+a \sec (e+f x))^{3/2}}-\frac{\int \frac{-2 a c+\frac{1}{2} a (c-d) \sec (e+f x)}{\sqrt{a+a \sec (e+f x)}} \, dx}{2 a^2}\\ &=-\frac{(c-d) \tan (e+f x)}{2 f (a+a \sec (e+f x))^{3/2}}+\frac{c \int \sqrt{a+a \sec (e+f x)} \, dx}{a^2}-\frac{(5 c-d) \int \frac{\sec (e+f x)}{\sqrt{a+a \sec (e+f x)}} \, dx}{4 a}\\ &=-\frac{(c-d) \tan (e+f x)}{2 f (a+a \sec (e+f x))^{3/2}}-\frac{(2 c) \operatorname{Subst}\left (\int \frac{1}{a+x^2} \, dx,x,-\frac{a \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{a f}+\frac{(5 c-d) \operatorname{Subst}\left (\int \frac{1}{2 a+x^2} \, dx,x,-\frac{a \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{2 a f}\\ &=\frac{2 c \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{a^{3/2} f}-\frac{(5 c-d) \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{2} \sqrt{a+a \sec (e+f x)}}\right )}{2 \sqrt{2} a^{3/2} f}-\frac{(c-d) \tan (e+f x)}{2 f (a+a \sec (e+f x))^{3/2}}\\ \end{align*}
Mathematica [C] time = 26.6113, size = 10115, normalized size = 79.65 \[ \text{Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.174, size = 554, normalized size = 4.4 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{d \sec \left (f x + e\right ) + c}{{\left (a \sec \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 7.86022, size = 1416, normalized size = 11.15 \begin{align*} \left [-\frac{4 \,{\left (c - d\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - \sqrt{2}{\left ({\left (5 \, c - d\right )} \cos \left (f x + e\right )^{2} + 2 \,{\left (5 \, c - d\right )} \cos \left (f x + e\right ) + 5 \, c - d\right )} \sqrt{-a} \log \left (\frac{2 \, \sqrt{2} \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + 3 \, a \cos \left (f x + e\right )^{2} + 2 \, a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1}\right ) + 8 \,{\left (c \cos \left (f x + e\right )^{2} + 2 \, c \cos \left (f x + e\right ) + c\right )} \sqrt{-a} \log \left (\frac{2 \, a \cos \left (f x + e\right )^{2} + 2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right )}{8 \,{\left (a^{2} f \cos \left (f x + e\right )^{2} + 2 \, a^{2} f \cos \left (f x + e\right ) + a^{2} f\right )}}, -\frac{2 \,{\left (c - d\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - \sqrt{2}{\left ({\left (5 \, c - d\right )} \cos \left (f x + e\right )^{2} + 2 \,{\left (5 \, c - d\right )} \cos \left (f x + e\right ) + 5 \, c - d\right )} \sqrt{a} \arctan \left (\frac{\sqrt{2} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt{a} \sin \left (f x + e\right )}\right ) + 8 \,{\left (c \cos \left (f x + e\right )^{2} + 2 \, c \cos \left (f x + e\right ) + c\right )} \sqrt{a} \arctan \left (\frac{\sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt{a} \sin \left (f x + e\right )}\right )}{4 \,{\left (a^{2} f \cos \left (f x + e\right )^{2} + 2 \, a^{2} f \cos \left (f x + e\right ) + a^{2} f\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{c + d \sec{\left (e + f x \right )}}{\left (a \left (\sec{\left (e + f x \right )} + 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]